home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_pyr_spiderdrop.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  52 lines

  1. # Jones 3D Cog Script
  2. #
  3. # pyr_spiderdrop.cog
  4. #
  5. # make spiders drop from the ceiling
  6. #
  7. # [GGJ] + [RKD]
  8. #
  9. # (C) 1998 LucasArts Entertainment Company LLC. All Rights Reserved
  10. #
  11. # ========================================================================================
  12. symbols
  13.  
  14. message    crossed
  15.  
  16. surface    spiderTrigger
  17.  
  18. thing    spiderGhost0
  19. thing    spiderGhost1
  20.  
  21. thing    spider    local
  22.  
  23. template    spiderTpl=spider_wall        local
  24.  
  25. end
  26.  
  27. # ========================================================================================
  28. code
  29. crossed:
  30.     Sleep(RandBetween(1, 2));
  31.  
  32.     if (spiderGhost0 != -1)
  33.     {
  34.         spider = CreateThing(spidertpl, spiderGhost0);
  35.         #sends message to spider_wall's class cog, saying "user0" (27)
  36.         SendMessageEx(GetThingClassCog(spider), 27, spider, 0, 0, 0);
  37.         DestroyThing(spiderGhost0);
  38.     }
  39.  
  40.     Sleep(RandBetween(1, 2));
  41.  
  42.     if (spiderGhost1 != -1)
  43.     {
  44.         spider = CreateThing(spidertpl, spiderGhost1);
  45.         SendMessageEx(GetThingClassCog(spider), 27, spider, 0, 0, 0);
  46.         DestroyThing(spiderGhost1);
  47.     }
  48.  
  49. return;
  50.  
  51. end
  52.